import { Exception } from "../../Framework/Util/Exception";
type int = number;
//class RMIException

export class RMIException extends Exception {
  constructor(message: string = "RMIException", code: int = 20000) {
    super(message, code);
  }

  public static /* const */ ExceptionCodeRMI: int = 20000;

  public static /* const */ ExceptionCodeNotSupported: int = 20001;

  public static /* const */ ExceptionCodeInvoke: int = 20002;

  public static /* const */ ExceptionCodeTimeOut: int = 20003;

  public static /* const */ ExceptionCodeConnectionNotConnect: int = 20004;

  public static /* const */ ExceptionCodeConnectionClosed: int = 20005;

  public static /* const */ ExceptionCodeConnectionWrite: int = 20006;

  public static /* const */ ExceptionCodeObjectNotExist: int = 20007;

  public static /* const */ ExceptionCodeOperationNotExist: int = 20008;

  public static /* const */ ExceptionCodeNotInstantiation: int = 20009;
}
